﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Identity;

namespace AdminManager.System.OrganizationUnits
{
    public interface IOrganizationUnitsAppService: IApplicationService
    {
        /// <summary>
        /// 获取所有列表数据
        /// </summary>
        /// <returns></returns>
        public Task<List<OrganizationUnitDto>> GetAllListAsync();
        /// <summary>
        /// 获取所有列表数据
        /// </summary>
        /// <returns></returns>
        public Task<List<OrganizationUnitDto>> GetListAsync(OrganizationUnitSearchDto searchDto);
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="organizationUnitDto"></param>
        /// <returns></returns>
        public Task<OrganizationUnitDto> CreateAsync(OrganizationUnitDto organizationUnitDto);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="organizationUnitDto"></param>
        /// <returns></returns>

        public Task<OrganizationUnitDto> UpdateAsync(string id, OrganizationUnitDto organizationUnitDto);
        /// <summary>
        /// 根据id获取对应的信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<OrganizationUnitDto> GetAsync(string id); 
    }
}
